<template>
	<view>
		<view class="content">
			<textarea class="content-textarea" :value="info" placeholder="请输入您的建议/反馈" maxlength="200"/>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:''
			}
		},
		// 提交
		onNavigationBarButtonTap() {
			  let that = this;
			  that.$http('customer.feedadd', {
			  	info: that.info
			  }, '提交中...').then(res => {
			  	if (res.code === 1) {  
					uni.showToast({
						icon:'none',
						title:'提交成功'
					})
					setTimeout(()=>{
						uni.switchTab({
							url:'/pages/me/me'
						})
					},900)
			  	}
			  });
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page {
		background: #F0F0F0;
	}
	.content{
		height: 300rpx;
		background: #FFFFFF;
		padding: 20rpx;
		.content-textarea{
			width: 678rpx;
			height: 260rpx;
			background: #F8F8F8;
			border-radius: 10rpx;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(0,0,0,0.45);
			margin: 0 auto;
			padding: 15rpx;
		}
	}
</style>
